// apigate project apigate.go
package restsrv

import (
	"fmt"
	"net/http"
)

func CreateGate(addr string) {

	router := NewRouter()
	fmt.Println("Api server start:", addr)
	err := http.ListenAndServe(addr, router)

	if err != nil {
		fmt.Println("create server failed:", err)
	}
	return
}
